from sys import exit

print('跳7游戏----')


def getNumLs():
    endNumber = int(input('please input the end number of Jumping 7 Game(from 1 to: '))
    fanWeiLs = list(range(1, endNumber + 1))

    return fanWeiLs

#print(getNumLs()) exit()


def out7num(ls):
    out7numLs = []
    for num in ls:
        num = str(num)
        if '7' in num:
            pass
        else:
            num = int(num)
            out7numLs.append(num)

    return out7numLs

#print(out7num(getNumLs()))  exit()


def out7beishu(ls):
    out7beishuLs = []
    for num in ls:
        if num % 7 == 0:
            pass
        else:
            out7beishuLs.append(num)

    return out7beishuLs

#print(out7beishu(out7num(getNumLs())))  exit()


def main():
    fanWei = getNumLs()
    out7numLs = out7num(fanWei)
    out7ls = out7beishu(out7numLs)
    print('^_^ :)',out7ls)

main()

